import request from '@/utils/request'

// 查询突发事件人员关联表列表
export function listPeopleEvent(query) {
  return request({
    url: '/backstage/event/list',
    method: 'get',
    params: query
  })
}

// 查询突发事件人员关联表详细
export function getPeopleEvent(cPeopleDuty) {
  return request({
    url: '/backstage/event/' + cPeopleDuty,
    method: 'get'
  })
}

// 新增突发事件人员关联表
export function addPeopleEvent(data) {
  return request({
    url: '/backstage/event',
    method: 'post',
    data: data
  })
}

// 修改突发事件人员关联表
export function updatePeopleEvent(data) {
  return request({
    url: '/backstage/event',
    method: 'put',
    data: data
  })
}

// 删除突发事件人员关联表
export function delPeopleEvent(cPeopleDuty) {
  return request({
    url: '/backstage/event/' + cPeopleDuty,
    method: 'delete'
  })
}
